#include <iostream>

using namespace std;

class A
{
	static int N, Sum;
public:
	A(){N++, Sum += N;}
	int getSum(){return Sum;}
};

int A::N = 0;
int A::Sum = 0;

int solution_Sum(int n)
{
	A *a = new A[n];
	int re = a[n].getSum();
	delete[] a;
	return re;
}

int main()
{
	cout<<solution_Sum(100)<<endl;;
}
